<!--
 * @Author: wjc
 * @Date: 2025-02-13 14:52:31
 * @LastEditors: wjc
 * @LastEditTime: 2025-10-30 14:43:14
 * @Description: 
-->
<template>
  <Content>
    <span :class="getPushStatusColor('PUSHED')">欢迎...</span>
  </Content>
</template>

<script setup lang="ts">
  const pushStatus = ref([
    { text: '待发布', value: 'WAIT_TO_PUSH', color: 'color-primary' },
    { text: '已发布', value: 'PUSHED', color: 'color-error' },
    { text: '已屏蔽', value: 'CLOSED', color: 'color-info' },
  ])
  const getPushStatusColor = (value: (typeof pushStatus.value)[number]['value']) => {
    return pushStatus.value.find((h) => h.value === value)?.color
  }
</script>
